<?php

/* @var $this yii\web\View */

use yii\helpers\Html;
//
//$this->title = 'About';
$account = 'yI3yZtC0';
$token = 'mMVHMh7ZB37HCmkcSrGMmR54O2B76hS2';
$verify = \app\librarys\Tools::db_uuid();
$timestamp = time();
$sign = hash_hmac('sha256', $account . $token . $timestamp . $verify, $token);
$address = 'http://i.dorabox.com.cn/api/send-user-integral-by-phone';
$url = $address . '?account=' . $account . '&timestamp=' . $timestamp . '&verify='.$verify. '&sign=' . $sign;

$data = [
    'institution_code' => 'JG001400',
    'phone' => '13012362392',
    'integral' => 180
];
$responseString = \app\librarys\Tools::postJson($url, $data);
$response = json_decode($responseString);

//
//
//
//$account = 'yI3yZtC0';
//$token = 'mMVHMh7ZB37HCmkcSrGMmR54O2B76hS2';
//$verify = \app\librarys\Tools::db_uuid();
//$timestamp = time();
//$sign = hash_hmac('sha256', $account . $token . $timestamp . $verify, $token);
//$address = 'http://i.dorabox.com.cn/api/get-user-integral-by-phone';
//$url = $address . '?account=' . $account . '&timestamp=' . $timestamp . '&verify='.$verify. '&sign=' . $sign;
//$data = [
//    'institution_code' => 'JG001400',
//    'phone' => '13883632536'
//];
//$responseString2 = \app\librarys\Tools::postJson($url, $data);
//
//$re = 'xx';
//var_dump('h1');

//$re = \app\librarys\Inteface::sendIntegraltoCqChianLife('13012362392',900);

?>
<div class="site-about">
    <h1><?=$responseString ?></h1>


    <code><?= __FILE__ ?></code>
<!--    <h1>--><?//=$responseString2 ?><!--</h1>-->

    <h2><?=$responseString?></h2>
</div>
